package com.imooc.coupon.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.omg.CORBA.INTERNAL;

import java.io.Serializable;

/** 通用响应对象
 * @description:
 * @author：naxiaozi，微信：naxiaozi
 * @date: 2025/8/7
 * @Copyright：
 */
//getter setter
@Data
//无参构造函数
@NoArgsConstructor
//全参构造函数
@AllArgsConstructor
public class CommonResponse<T> implements Serializable {
    private Integer code;
    private String message;
    private T data;
    public CommonResponse(Integer code,String message){
        this.code = code;
        this.message= message;
    }
}
